#ifndef PLAYERSKILLDIALOG_H
#define PLAYERSKILLDIALOG_H
#include <QGraphicsObject>
#include <QEventLoop>
#include "gs.h"
#include "gamedialog.h"

using namespace gs;

namespace gs
{
class BottomLessDialog : public GameDialog
{
    Q_OBJECT
public:
    BottomLessDialog(GameDialogManager*, GameDialogBg*,Player* p);
    int execDialog();
    QRectF boundingRect() const;
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
    void setTaoButtons(Player* p);
protected:
    QPixmap _bg;
    QList<TaoItemButton*> rTaoButtons;
    QList<TaoItemButton*> yTaoButtons;
    QList<TaoItemButton*> gTaoButtons;
    QList<TaoItemButton*> blueTaoButtons;
    QList<TaoItemButton*> blackTaoButtons;
    Player* _pl;
private slots:
    void updateRemainTao();

};

}
#endif // PLAYERSKILLDIALOG_H
